From f03e319c88b4f7f23ec80d7c50369fc6c804d641 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 27 Apr 1993 21:59:46 +0000 Subject: [PATCH] (gud-format-command): Fix %f expansuuin to send ondly the basename of files to gdb. --- lisp/gud.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/gud.el b/lisp/gud.el index c879e67ec1d..4729624904b 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -582,9 +582,9 @@ Obeying it means displaying in another window the specified file and line." (progn (setq str (concat (substring str (match-beginning 1) (match-end 1)) - (if insource - (buffer-file-name) - (car gud-last-frame)) + (file-name-nondirectory (if insource + (buffer-file-name) + (car gud-last-frame))) (substring str (match-beginning 2) (match-end 2)))))) (if (string-match "\\(.*\\)%l\\(.*\\)" str) (progn -- 2.30.2